<include file="__THEME__/header" />
<script type="text/javascript" src="../Public/Js/common.js"></script>
<link  href="../Public/layout.css" rel="stylesheet" type="text/css"/>
<link  href="../Public/group.css" rel="stylesheet" type="text/css"/>
<include file="../Public/_mainNav" />
<div class="content"><!-- 内容 begin  -->
  <div class="main no_l"> 
    <!-- 右侧内容 begin  -->
    <div class="mainbox"> <include file="../Public/_groupInfo" />
      <div class="mainbox_C"> 
        <!--  简单头部 --> 
        <include file="../Public/top" />
        <div class="groupBox mLR15">
          <div class="boxL" style="width:100%;">
            <if condition=" $_SESSION['uploadSuccess'] ">
              <div class="msg">
                <h2 class="f14px"><img src="../Public/images/fzcg_dh[1].gif" />文件上传成功！</h2>
                <p>回到<a href="{:U('group/Dir/index', array('gid'=>$gid))}">文件共享区</a>，或者继续<a href="{:U('group/Dir/upload', array('gid'=>$gid))}">上传文件</a></p>
              </div>
              <else />
              <form method="post" action="{:U('group/Dir/upload', array('gid'=>$gid))}" enctype="multipart/form-data" onSubmit="return checkForm()">
                <div class="lh35 cGray2">上传文件</div>
                <ul class="postsList">
                  <li>
                    <div class="left lh20 alR" style="width:100px">文件路径：</div>
                    <div style="margin-left:110px;">
                      <input name="uploadfile" type="file" id="file" /> (仅支持：{$upload['allow_exts']} 最大上传文件：{$config['simpleFileSize']}M)
                    </div>
                    </li>
                  <li style="height:auto;">
                    <div class="left lh20 alR" style="width:100px">文件注释：</div>
                    <div style="margin-left:110px;">
                      <textarea name="note" cols="50" rows="3"></textarea>
                    </div>
                  </li>
                  <li>
                    <div style="margin-left:110px;">
                      <input type="hidden" name="uploadsubmit" value="1">
                      <input name="submit" type="submit" class="btn_b" value="上 传"/>
                      &nbsp;
                      <input name="reset" type="button" class="btn_w" value="取 消" />
                    </div>
                  </li>
                </ul>
              </form>
            </if>
          </div>
        </div>
        <!-- end  --> 
      </div>
    </div>
    <!-- 右侧内容 end -->
    <div class="c"></div>
  </div>
</div>
<script>
	function checkForm() {
		if($('#file').val() == '') {alert('请选择上传文件');return false;}
		return true;
	}
</script> 
<include file="__THEME__/footer" /> 